archived functions/importPersonography.R

#' Import a personography into a \code{docNetwork} object.
#' File must be in the format: ID, Role
#' 
#' @param   dnet a \code{docNetwork} object to add the data to.
#' 
#' @param   path A string that gives the full path to the csv
#'               formatted data file.
#'             
#' @return dnet The modified dnet object.
#' 
#' @examples
#' 
#' dnet = importPersonography(dnet, "path/to/file/data.csv")
#'
importPersonography <- function(dnet, path ="") {
  dnet@persons = read.csv(path)
  return(dnet)
}
michaelgavin/htn documentation built on May 22, 2019, 9:50 p.m.